import http from "@/utils/http"
import type {OssFileVo} from "@/apis/oss";

const baseUrl = '/vneue'

export interface VneueDto {

    id: number

    description:string,

    history:string,

    ossId:string,

    updateBy:string,

    updateTime:string,

    status: string

}

export interface Query {
    pageNum: number,
    pageSize: number,
    description: string
    status: number | null
}

export interface VneueVo {
    id: number,
    description:string,
    history:string,
    file:OssFileVo[],
    updateBy:string,
    updateTime:string,
    status: string
}

export function addVneue(data:VneueDto) {
    return http.post(`${baseUrl}`, data)
}


export function InquireVneue(query:Query) {
    return http.post(`${baseUrl}/inquire`, query)
}

export function updateVneue(data:VneueDto) {
    return http.put(`${baseUrl}`, data)
}

export function deleteVneue(id:number) {
    return http.del(`${baseUrl}/${id}`)
}